import { IconKey, IconProps } from '@/types';
import { keyToIconMap } from '@/components/icons'

export default (key: IconKey, props?: IconProps) => {
   const Icon = keyToIconMap[key];
   return <Icon {...props} />;
};
